package net.model.decorator;

import net.model.decorator.IBeverage.CupSize;

public class Test {
	public static void main(String[] args) {
		
		IBeverage b1 = new Espresso();
		System.out.println(b1.getDescription()+" $"+b1.cost(CupSize.CUP_S));
		System.out.println(b1.getDescription()+" $"+b1.cost(CupSize.CUP_M));
		System.out.println(b1.getDescription()+" $"+b1.cost(CupSize.CUP_L));
		
		IBeverage b2 = new Latte();
		b2 = new Milk(b2);
		b2.setDiscount(0.5);
		System.out.println(b2.getDescription()+" $"+b2.cost(CupSize.CUP_S));
		System.out.println(b2.getDescription()+" $"+b2.cost(CupSize.CUP_M));
		System.out.println(b2.getDescription()+" $"+b2.cost(CupSize.CUP_L));
	}
}
